syntax = "proto3";

package converter;

option java_package = "ru.tinkoff.hse.lib.converter";
option java_multiple_files = true;

message ConvertRequest {
  string from_currency = 1;
  string to_currency = 2;
  string amount = 3;
}

message ConvertResponse {
  string currency = 1;
  string converted_amount = 2;
}

service CurrencyConverter {
  rpc Convert (ConvertRequest) returns (ConvertResponse);
}